TST/CLN: centralize module check funcs

- Moved duplicated module check functions to `util.testing`
- Remove some unnecessary import
ah, didn't know (never had that problem on windows). But still, shouldn't it be in two seperate functions then? The tests that use `interpolate` should not be skipped due to ``stats``?