Add basic unit tests for curry funtion