added a test case for the previous commit