Fix require *-middleware path, add test case for non-GET, non-HEAD requests