Make assert_recognizes to consider request query parameters with extras

Try fixing #9718

Query Parameters were being ignored, and only path info along with `extras` were used for matching route params. This behaviour made it to ignore wrong parameters.

This PR tries to make query parameters accountable too