Added unit test for #1473.