Improve AddPermissionTestCases, fail when exception not thrown