adding test to check for memory leaks that I know are there