Test suite robustness

A couple of things that make the test suite more robust: Improved HTML comparison; and avoiding using the `nth-child` selector in capybara steps, which is unreliable on some builds of nokogiri (it depends on which version of libxml2 it was built against. Nokogiri 1.5.10 on vanilla Mavericks doesn't like it for example).