add memory leak test file
fix #431