Fixed Karma test warnings