Improve and correct the getElementsByTagName tests in case.js.