That's not a bug. The Test mode's debug views aren't magical, so to mark up the debug output they actually need to inject markup.
If you want to test output formatting, then you want to use Play mode. I'd reserve Test mode for tracking down other issues.