Added memory allocation tests.