Added memory allocation test.

2 files changed