fix test_ldlibs usage bug