Add delay in test loop()