Adding mode setting to the test case drivers.