Integration tests for --resource queries