Fixed some code in server.test case