modified test cases for karma