Add a test for a currently broken query