Testing behavior with toString and toValue methods