add test for onRemoveChunk