Test directly against the object rather than using toString