added a unit tests for partial functions as callbacks