Fixes Issue 10990 - getUnitTest trait does not work with module import.
Merge pull request #2534 from AndrejMitrovic/Fix10990_2

Issue 10990 - getUnitTest trait does not work with a module import.