changed the way to load the library for testing