Disable the memory leak tests for now
Fixed a few leaking global variables