Helper function to test that the input is a Wave object. Will create an error if not.
validateIsWave(wave)
wave
Object to test