Unit test for issue 471 on GitHub.