fix tests involving coerce

change internal method toObject -> toJSON
version bump