Test case for #560