Tests for query on fields implemented