fixes + tests for fifo<>