Test for issue #571
Merge remote-tracking branch 'upstream/master'