REVIEW-1033: replace nekohtml by jsoup in tests
Review-1037: make assumption handling thread safe.