Refactor #5831 add getPermissionList test case