a test to check for memory leaks