Raise exception on warning when testing

This avoids running dics_source_power when only checking for input warnings and
cuts down the time the test takes from 31 to 26 seconds on my machine.