Karma fixes

Fixes some warnings in the karma run.