Not works correctly in firefox. Maybe it is WebDriver bug.
Add thread cest