Extend plain text formatter tests.
Improve plain text formatter.