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

With static allocation of `NameBuff`, taking the address `&NameBuff` seems to make things upset. Work around by manually creating an array containing `NameBuff`. The cast avoids a compiler warning.