Tests the DOM content loaded event.