Reduced to one threadlocal
Init resource bundle only once
Dont load policy twice in test
Made test pass with newer versions of nekohtml
Upgraded nekohtml to (almost) the last version

1.9.17 doesnt work