fix(testing): wait for async cleanup timer rearm (#10348)