Refactor ThickXMLCodecTest