`have_library` function in testsuite is unused
We should remove the have_library
function from the testsuite as it's unused, and shouldn't be used to declare dependencies in the testsuite because the testsuite shouldn't have any external package dependencies.