some code for memory leak testings
rename "tests" to "plan_tests" to avoid conflict