Test coerce method.