Using flush instead of sleep

Instead of thread sleep you could use flush and have a little faster tests.