Replaced $timeout by $interval to allow tests with protractor. 

See the default issue here : https://github.com/angular/protractor/issues/169

In protractor you can't test message in the toast when you have 'timeout' enabled for it. Protractor is waiting for the timeout to finish to continue and you test is usually after the error display.