Checkpoint after writing some tests.

First failed test! Doesn't handle duplicated packets yet.