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

Option (1) sucks because it has a cascade effect on calls within `gen_expand_wildcards`. But what's wrong with option (2)? Can't we allocate NameBuf in `mch_early_init()` and that will allow the tests to work?