Test case for #990