Fix test bug with auto_reformat

There's definitely room for improvement,
but the test is now passing, regardless of terminal size.