Fix use of Boost::unit_test_framework library
Some tests were configured to use the headers only Boost unit_test variant, while being linked against the shared library. This is not correct and causes aborts at exit.
More details can be found in !3313 (merged), where I already fixed the same problem in other tests. Note that the problem might go unnoticed until some independent change triggers a memory corruption that results in the observed abort.