make karma test cases can passed