Added unit tests for Lib classes