Added ability to mock 'alert'