Use this.onSpecComplete instead of this.specFailure

Apparentally the this.specFailure callback does not work in newer versions of
Karma. This commit fixes that by moving to this.onSpecComplete. I don't know if
this.specFailure is supposed to still work or not.