Refactor COQL test for IE 7/8

IE 7/8 doesn't like just returning the query statement, so check that it's there in an alternate way.

@bug W-1849524@
@rev gtorres@
Merging origin/tbliss/master-pending-query-test-refactor-IE into master