Added integration tests for the Simple Query API