Tests of query w/ attribute