added partially applied functions and tests.