exports.tests = {
 addmetatohead : function() {
    var meta = window.document.createElement("meta");
    var head = window.document.getElementsByTagName("body").item(0);
    head.appendChild(meta);
    assertTrue("last element should be the new meta tag",
                head.lastChild === meta); 
    assertTrue("meta should not be stringified with a closing tag",
               window.document.innerHTML.indexOf("<meta>") > -1 &&
               window.document.innerHTML.indexOf("</meta>") === -1
               );
  }
};

@@ -102,19 +102,8 @@
 %0A   
- var head =
  win
@@ -141,12 +141,12 @@
 me(%22
-body
+head
 %22).i
@@ -155,18 +155,8 @@
 m(0)
-;%0A    head
 .app
@@ -171,16 +171,101 @@
 (meta);%0A
+    var elements = window.document.getElementsByTagName(%22head%22).item(0).childNodes;%0A%0A
     asse
@@ -334,22 +334,40 @@
     
-head.lastChild
+elements.item(elements.length-1)
  ===

Revert "fix the meta tag test"