Add tests for self closing tags to dom and jquery output handlers