added tests for document to confirm changes