Debug mempool, add a unit test.