Wrote TextSpanner format tests.