dev: fixed karma tests