Avoid test race condition