Add a huge test case which captures the current behavior of getMSGfromXML

The 'expected result' was taken straight from the functions output and
needs to be verified by hand.