Implemented getOuterHtml and increased test coverage