Updated testing config for latest version

After cloning and running `npm install` and then `grunt karma` I received a lot of errors. It seems Karma has recently been updated with some breaking changes. This PR fixes the testing suite with the latest version of Karma.