unit tests for fifo.c