Synchronizing a test with FluentWait