Add `$` prefix to all bash examples to make it clearer that it is bash
Wait on the actual condition under test to avoid flaky test
raise the settle timeout to reduce flakyness in this test