Adds a tiny delay in the infinite test code

Without it, it is possible to fill the heap, and to crash the target VM.