- merge middlewareError and middlewareTest into testServerCreateAndListen