add memory allocation test