Removed old test code
Fixed: not setting the library parameters correctly