Fixing capybara gem and improving register functional test.