Added unit test to exercise server cycle