tests: Apply @LudwigOrtmann's unittest patch