Add a reduced test-case for issue 4800

This fixes another case of laziness on my part, by adding a reduced test-case that *should* have been part of PR #4835.