Extended yaml test (one more document, two more queries).

Relates to #4879