Refining html and dom tests sections