Fix tests for logger