Fixed #21476 -- Cache tests make an incorrect use of `HttpRequest`

Query string must be set in `HttpRequest.META['QUERY_STRING']` instead of
`HttpRequest.path`.