Added unit test for `SelfClosingElement`.