Implemented DocumentCollection.
Added DocumentCollectionTest.