Update karma tests