add model method which assigns manager role,test for this method