Test fixes to test_server.

Signed-off-by: Daira Hopwood <daira@leastauthority.com>