update karma test cases