Add tests for Function.curry