test/mem: remove dependency on EAL internals