Fix publishing test wait_for clause