Added tests for server.