EventBarrier and TestEventBarrier classes