More test coverage for static middleware