[Tests] Adding tests to test reverse and when order_by is set in
queryset.