Add a test for Document#implementation.