Some improvements in the share tests.