Fix whitespace in test
Add test for Query object fetch