Fixed a bug involving wrongly closed tags.
Added more unit tests from Gumbo