Some unit tests added.
FormatString function added.