Add a test for Document#implementation.
Merge pull request #1312 from Ms2ger/document-implementation

Add a test for Document#implementation.