added method and test for Document.date_range