Fix query result tests.