extracted test_server from integration_tests etc
Merge pull request #284 from dannycoates/i284

Factor test-server spawn/teardown code into a single helper function