To the best of my knowledge you only need to append the element to the DOM when your test relies on the browser to compute something (e.g. the size of an element). If that's not required then you can leave it in "limbo".
In the cases you need the element to be inside the DOM, using the compiled version will mostly suffice. I can't think of any scenario where appending the "raw" element to the DOM before compiling it would be useful.