Make async test terminate