This will leak memory, you should not modify the `karma.config` as that is in the parent (long life) frame.
Let's create a clone.