Clear filtered request attributes between requests in tests

The request attributes filtered_parameters, filtered_env and filtered_path
are memoized for performance reasons. However this can cause unusual
behavior in tests where there are multiple calls to get, post, etc.

Fixes #13803.

(cherry picked from commit 31616068032beb537768787ff3a206b062eb192e)