implement element.getElementsByClassName and test