Cleanup HTML DOM testing in specs