added tests for curried