add memory_test.c & socket test files