Some tests are performed using while loops and need a timeout to prevent infinite loops in case the test doesn't work.