The test cases have been added in this commit