Simple integrity tests and data set.

Fixes some bugs with keys where they would not be truncated properly
to KEY_SIZE characters. The integrity test currently fails to retrieve
100% of it's results after everything is inserted, but that could be the
dataset.