Updated test to new output format.
Added support for complexContent and extension tags.
Better errors capturing in handle result.