Make test independent of scheduling