Added SignalSource constructor initializing with an array of samples.
Using new constructor in SignalSource tests.