test enqueue_barrier/marker and wait_for_events