add test for UnitOfWork::isDocumentScheduled()