main/test: Fix race condition between AMI topic and Test Suite topic