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

Good to know.

There is still the issue that this file doesn't work.