Debug specs and fix failing specs to use capybara rather than webrat api