Test query-string for list actions with filter arguments

httpretty.register_uri only matches the path, not the query
string, so the test_list will pass even if the query string
passed by the manager doesn't match that passed as part of
expected_path.

So add a test for the query component of all list requests,
and a way to override the expected query, which is needed in
the trusts list filter tests where the query string doesn't
exactly match the kwargs passed to the client API.

Change-Id: I290b73bbbdac88487c225063fd3775ab7dd8bb89
Merge "Test query-string for list actions with filter arguments"