added unit test for unclosed tags