The problem here is, this test scenario is actually not allowed, because it combines psr-4 with target-dir. It just happens that there is no exception thrown if this illegal combination is in the main package, and not some secondary package.

The PR adds an exception in the Plugin\Psr4 class, if it finds this illegal combination. So this test will break.
I will isolate this change in the next rebase.