- added test to one lib method, refactoring