Offline-testing for document.