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

`returns ^path$ regex for literal path input`