Add test for logger