test race conditions