added testcase for callbacks