capybara extension, test hook extension points and small fixes