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

__Done__ Switched and added constants to make it clearer what the value means