Test toString method.