Removed wrong assert
Some when_each/wait_each fixes. Use them in examples and tests instead of the old wait where possible.