test race condition