TST/CLN: centralize module check funcs

- Moved duplicated module check functions to `util.testing`
- Remove some unnecessary import
not true 
scipy 0.10 or 0.11 breaks on scipy.stats (I have it on windows)