Corrected API for ShareFileWithCommunities and added snippet and unit test