Add assertions to dom helpers spec