added test of library behaviour