add tests to memmgr_mock

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>