The comparison works for simple function (and should works with object); closure are logically not equals