Test class for SimpleQuery