LoggerTest::shouldCallLoggerErrorWhenHandleCalled fix