Add chunk split/merge and tests.