Loosen two constraints in document-count test cases