Add unit tests. Fix particularly pernicious bug in the pagination mechanism.
Bump minor version.