Test case for #1617