Move query middleware tests to a separate file
Add tests covering using populate with query middleware