fix RunkitFunction::__invoke is function not defined throwing exception
tests for RunkitFunction::__invoke