fixed local getElementsByClassName, uncommented and fixed applicable tests
Merge remote-tracking branch 'chrisbateman/selector-test-fixes' into dev-master