Create permission cleaner method
 Remove test gems
Consider permission hierarchy
Remove test gems
Merge branch 'MH-707' into MH-646
Add more tests