Add memory usage test file
Memory leak fixes
0.2.5