Test to string method.