fix check for test=True  per E712
Merge pull request #12158 from UtahDave/develop

fix check for test=True  per E712