test filtering query by category and location