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

It's not really bash-specific, it's just a glob syntax.