Fix off-by-one end whitespace test