test for document clustering