Add TestPermission

100% code coverage