I'm not a fan of tracking deployed applications globally like this.  Rather, we need a clean contract between a test and the framework.  Each test should be responsible for undeploying the applications that it deploys.