Testing functionality of UI-Router