Added test case to reproduce the scenario
Fixing issue