Fixed a problem with testing share removal when sharing is not supported