Add a reduced test case for bug 847420

Another case of laziness on my part, this really *should* have been included in PR #4578.