Selector unit test fixes

Fixed the local getElementsByClassName, which allowed for several applicable tests to be uncommented. Fixed a few tests which were incorrect.