Testing circular buffer with DMA transfers