Add forgotten unit-tests for XML formatting

A follow-up for #131