unit tests for the lib