Fix share unit tests