Use innerHTML not innerText in test