fixed karma test