ModifySet: Parse the permission

Implemented test cases as well.