Fix Karma test error.