testing angular-ui-router functionality