Added test mode to server