Fix for test failure

The failure was caused by the tests being sensitive to querystring ordering in some URLs.

I fixed it by parsing the querystring with `django.http.QueryDict` when necessary.