Test cli for partition-table update and create

Please review it
Thanks
I don't believe you need to `return self.file.name` here.