Convert testing for-in cycle to interval handlePeriod calling to support defers in strategy