Fix tests after valueOf() change.