test flowing and non flowing mode
call cb after flushing the data