Adding the test case for #287