fixed mpool bugs + better test