add memory mgnt test code

test case for https://github.com/RIOT-OS/RIOT/pull/292