Adds tests for ABAB (#2)

Issue: #32