simplify server tests by moving createServer to another object