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

I don't feel too strongly about it to request a change. But a comment would definitely feel refreshing, yes (even if it was just a reference to these comments, but preferably something inline).