fix Issue 11358 - debug import and getUnittests do not mix
Merge pull request #2695 from 9rnsr/fix11358

Issue 11358 - debug import and getUnittests do not mix