Add test for Document