update_share(): added unit tests