Added a unit test for the issue fixed previously