added unit tests for `deferred.notify` and `promiscuous.all`