Added tests for chat server.