JBQA-8350 - Implement tests for the Remote Queries feature