Added a test case for the bug in the previous commit