Test moka/core/utils/functions.apply()