Added more unit tests for server.