[WIP/RFC] Add unit tests for buffer.c and fileio.c

**EDIT**: ignore me for a bit, I just tried that and it makes vim crash on exit. Perhaps `gen_expand_wildcards` is re-assigning `NameBuff`, although that would be way weird.