I have the same error your commented, after a call service they ask me about the url of otherwise ui-route.
To solve the problem of call the otherwise ui-route in testing is not inject $state in beforeach statment. In my testing $state not have sense to use it.