Added tests for callbacks