Convert unpack sketch to a test.

Closes #317.