Update karma config and tests