fixed Karma tests