Fix lint issues and make use of the helpers.

Double to single quotes.
Remove unused imports
Remove unused import
Remove unused import
Remove unused import
Return `True` if not renaming the module.
Skip tests if mock not available, make use of helpers
Merge pull request #10384 from s0undt3ch/hotfix/lint

Lint Fixes