Added a test to make sure that currying and closures are correctly working