Added memory leak unit tests.