Adding unit tests for logger