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

Since we're already churning these lines, please change the `/**/` comments to `//` comments.