updated memory allocation tests