Fixed karma tests.