QA test for memory leaks