added check to test globaleaks is running correctly