finally fix shared library tests

I finally fixed the tests for the shared libraries and they are running fine on my system...