Added ground work for OC.Share unit tests

@schiesbn please adapt/extend these once your changes in the OC.Share dialog have been merged.