Add test setup to test core templates using the optimizers.