Added sesuncedu's testOutputToDOMResult test