Adding methods to set and get sharing settings. Tests