tests for callbacks attached and changed

tests for callbacks attached and changed