Cleaned up the dynamic library loading test code