declarative queries testing