Propagate switches when running perl in tests