Added tests for improved 'toString()' method.
Improved method 'toString()'.