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

can you create a ticket for this? Need to check if this is a regression or ask vim_dev mailing list.