remove redundant private.
change tests to use to_/from_hash instead of create_document_with/update_properties_from.
fix more tests.