Added some unit tests to the server.