fixed karma testing