Test adjusting record length to store length.

Closes #256.