Remove race condition in test.
Fix order dependence in iframe test and fix use of setTimeout in many tests.
fixup! Fix order dependence in iframe test and fix use of setTimeout in many tests.
Merge pull request #889 from w3c/jgraham/scheduler_fixups

Som fixes for the script scheduling tests