callback register/unregister callback type detection implemented; added corresponding tests