Implement ucurry function + tests