I will provide a dirty workaround here, that can be easily copied without adjusting any code.
There might be better solutions, I am open for other answers!
Also, I won't promise 100% that this works in all circumstances. Perhaps opcache can bring nasty surprises?
Create the following file in "tests/src/$modulename/Traits/AutoloadHelperTrait.php".