Test remote quesry