Add test for issue 1491.