added smp unit test to mempool. slight modification on cunit.