Test case added for #352.