Move the generation of a client/server pair into a separate class, since it's used in several of the tests and is essentially boilerplate.