Add some extremely primitive leak detection test code.