allocator bug fix and add test code.
delte malloc_test.c