Add conditional case setting for tests.