fixing 4 test cases by introducing the outerHTML structure