Add sleeps to stabilize tests

fixes #209