Fixes some failure and accelerating the Unit-tests

Sleeping only 10ms instead of 1 seconds brings the runtime of this unittest down from 200 seconds to 2!