library view tests: use zip(a, a[1:]) for pairwise