Add a unit test for bug fix #1396678.
2 files changed