Add unit test for HTML validation