initial commit for attached and detached callbacks tests