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

@jszakmeister But why would 400MB of virtual memory be reserved then?