Created a test case for the bug