Capybara test improve

@joneslee85 
also image tag self-close with `/>`