Testing capybara webkit with synchronous ajax