Adds more cases to select_related and prefetch_related tests.