Test that queryset transform functions are only evaluated upon iteration