tests against memory leaks