Test basic document matching.