use confirm + wait_for_confirms to fix flakey test

Fix the flakey test with publisher confirmation + wait_for_confirms