add stuff for testing against fd leaks and memory leaks