Test for issue #571