waveform_test: initial commit, increase test coverage from 85.0% to 93.0%