Added log code when server is in test mode