more test cases around new Query API.