fixed karma tests errors in last commit