Exclude ps1 modules from the TestModules unittest

Fixes #7864