Fix python 3 query verification.

Seems django 3 follows the iter* -> * convention in Python 3.
More tests.

Add some tests that test the query capabities.