AIA-39 - attachments can contain illegal characters
added asserts to testExtractingAttachment to check that attachments are correctly extracted from XML