Added workaround for hhvm's broken registerNodeClass support (inspired by FluentDOM's implementation)
Workaround for HHVM
Change test so it fails on php and on hhvm as expected