refactored karma config