added test cases for permissions and basic handling