Factor out server creation, so tests don't log.