implemented karma and included few of the test cases