Added test cases for task 3.