Add unit tests of stim alignment and filtering