fix karma tests