add allocator_test.cpp