karma test fix