test race conditions eliminated