Fix ahead/behind

And that, ladies and gentleman, is why unit tests are nice.

Also, less lulzy test setup.