Fix browser freeze/crash on slow machines with a 5ms sleep between tests