move code to create a test server on demand