Implemented testToString() test.