Added test for FIFO functionality