Added tests for remote queries.