Added test for create partition table

Please review it
Thanks
A refactor that would allow us to catch a more specific error would be great.