Added test file and more to slug_mem.c