fix logger service for test mode