unittest for logger