Tests added. Note in the test, above, we have to accept up to a 1-sample jitter (atol=1/sfreq).