Add tests for Model.Doc