Middleware tests done