added test for document ranking