unit tests for logger