Added unit test for the issue