Added test case and tested few scenarios