Added unittests for server.py