Testing race condition