Tests use function, rather than node server directly.