Add unit test to test_type_and_options in test_xml_module.