Add tests for and refactor get_trimTPSData
Add tests for get_trimTPSData.
Delegate trimming waveform data step in get_trimTPSData to trim_waveform_data.
Add tests for get_trimTPSData.
Delegate trimming waveform data step in get_trimTPSData to trim_waveform_data.