Add a regression test for bug 478.