testcase for callbacks