Added some additional tests that check for ill cases in HTML documents. Fixed a typo in an Unexpected Character error.
Merge pull request #52 from rubymaniac/html_tests

New tests for smart parser