- merge middlewareError and middlewareTest into testServerCreate