Added test for ServerLoop.