Set testElement to null on domready

The testElement used in DOMReady shows up in Chromes Heap Profiler as a
detatched dom tree entry. This probably cases a leak.

#2476