Selenium test fails when executed too fast