Implemented Kill function with Test Case.