Django 1.4 change: HttpRequest.raw_post_data was renamed to HttpRequest.body
Add flexibility in query tests.