Fix Karma test