Added karma for writing test cases