Servermode tests

Created tests for @jeremybmerrill's solution for issue #18