[TEST] Allow to disable plugin loading from classpath

this PR allows us to disable plugin loading from the classpath during tests.