Query location and testcase