corrected library linking in tests
misc