changes module import syntax and assertRaises

the import statements now conform to the other test
by importing from xmltodict

uses assertRaises to test for exception handling