[test][algorithms] do linking of the unit test framework on a per-unit-test basis