add karma tests to ui-router