fixed the test mode of the server