Add TestPartialVersioning write method tests and fix patch