adding regression test in master for #8631

As per comment by @pixeltrix on #8631 porting the regression test to master.

Tests that local inflections should not interfere with HTTP_METHOD_LOOKUP