Add test for conditionless match query