Fix failing test in phantomJS.

For some reason <element>.innerHTML doesn't work in phantomJS =(