TST/CLN: centralize module check funcs
- Moved duplicated module check functions to `util.testing`
- Remove some unnecessary import

looks reasonable 
 can I update the wiki to mention in the testing section that this is how to skip tests if the import isn't available 

thanks 
