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

Mea culpa on the decoupling. I should've seen that.

The fact that I didn't notice any error just shows how much of a tangled web (neo)vim is.