Adding tests for getWavePatternFromSlice