test: use uppercase nodeName values for test names
index: handle the case where a collapsed DIV range gets normalized properly