Added regression test for self closing tags