update UserContextInheritanceMgr and UserInheritance class and add junit
testing for the first one