Fix test for document validation