Added Unit tests for Role class and fixed errors