test: add a test for empty queries