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

I updated the test comments to clarify