tst7 checks for memory leaks