code: function (data) {
      var self = this;
  
      if (typeof data === 'object') {
        data = EJSON.stringify(data);
      }
  
      _.each(self.callbacks['message'], function (cb) {
        cb(data);
      });
    }
docs: Methods for tests