Add test case for off by one error in textual.cc fixed in a013a73b