Fix Karma tests.