Updated karma tests.