remove Document.remove and add tests and validation to properties