fix karma test