currying passes tests