tests for callbacks created and detached