unittest_server_refactoring