tests: Reuse unittest's functions & classes when present.

Fixes unittest.expectedFailure usage, allowing phasing out
backportUnittest gradually (at least for the backport part).