[BUGFIX] DI fails with CompilerDefinition; solves #5738 - Test