Fix tests when last bytes include at least one non-newline byte

Apparently, missed the edge case before.