Permission handler updated
Test cases updated
Permission handler unit tests added