Modified function.java to fix failing test
Caused by typo : arglist changed to argList in signature