Updated karma unit tests.