fixed test to work with both versions of ui-router