Refactor ServerTest.