Test: Context.barrier method