Testing a Voltage Regulator

The capacitors are there to prvent oscillations and smooth out fluctuations, use them. If you want to input less than 7 V, look up low dropout "LDO" regulators.