testing memory leaks