added basic unit test for mempool
added TEST_CODE() macro for interunit code