Discard unused dependency.
Flushes timeout and add the class 'ng-scope', 'active-nested' to spec.
Change the implementation of state matching to stick to the original implementation by @caitp.