Stubbing alert users with private pub method to avoid ECONNREFUSED