Add tests to validate returned xtrace header