Update Karma configuration for latest version compatibility

A version of Karma isn't specified in `package.json`, so when I ran the install process I got a newer version than the one that was used when the test configuration was created. The API seems to have changed since then, because I got a bunch of warnings. This PR fixes them.