Added some lines of real unit testing code
Fixed a test which was not acting correctly
Added an exception message if the XML file cannot be read