fixed karma tests