BUG-FIX: shift1D was not cropping as expected positive shifts when shift...

This fixes an old bug in shift1D that in some corner cases was not cropping properly the signal axis. It also adds tests to detect the bug.