Html page class: fixes and tests