test(state): fire $stateChangeError if onEnter/onExit throws.
test(state): fire $stateChangeError if onEnter/onExit throws.

(cherry picked from commit a5756c38a282bd2556ed5faaf870d6e493722d1b)

fpipita/ui-router,fpipita/ui-router,angular-ui/ui-router,codersongs/codersongs.github.io,codersongs/codersongs.github.io,ui-router/ng2,angular-ui/ui-router,ui-router/angular,mattlewis92/ui-router,angular-ui/ui-router,wawyed/ng2,wawyed/ng2,ui-router/core,ui-router/ng2,ui-router/angular,ui-router/angular,ui-router/core,ui-router/angular,wawyed/ng2,mattlewis92/ui-router,fpipita/ui-router