karma fixes, tests broken need update for wait