Added some unit tests for the SAMI read and write classes