Xml frame decoder with unit tests