make brainwaresrcio handle cases with no spikes in a segment, with tests