Karma test complains about cordova plugin not being installed

Running npm test results in this error message:

ERROR: ‘the cordova-plugin-ionic plugin is not installed. Install it for better device information for runtime errors.’

The plugin is installed, but it still complains about it, and makes my tests fail.

Is there anyone who has seen this, and maybe know a solution to it?

Thanks in advance