Added tests for DocumentCollection, bringing overall line coverage to 92%