test for some memory leaks