Test cases for issue #1477.