More flushes modes

And and check for double finish
Now unittest same as standard