it('should publish on events', () => {
    spyOn(instance.events, 'publish').and.callThrough();
    instance.setAlertsData('');
    expect(instance.events.publish).toHaveBeenCalled();
  });