Permission handler updated and tests added