Improve and correct the getElementsByTagName tests in case.js.
Merge pull request #827 from Ms2ger/case-getElementsByTagName

Improve and correct the getElementsByTagName tests in case.js.