More work on karma tests.