Fix backward scan, which had managed to be completely overlooked.
Add regression test for it.