Move test api wait into a shared method.
Test tag delete.