add testcase for logger