     func testExtractIpa()
     {
         let ipaPath = config!["ipaPath"] as String
-        
         let ok = SSZipArchive.unzipFileAtPath(ipaPath, toDestination: tempDirUrl?.path!)
         XCTAssertTrue(ok)
     }
     
+}
+
+class ITIpaTests: XCTestCase
+{
+    var config:AnyObject?
+    var tempDirUrl:NSURL?
+
+    override func setUp() {
+        config = ITIpaTests_testConfig.loadConfig()
+        tempDirUrl = ITIpa.createTempDir()
+    }
+    
+    override func tearDown() {
+        var error:NSError?
+        NSFileManager.defaultManager().removeItemAtURL(tempDirUrl!, error: &error)
+    }
+
     func testAppName()
     {
         let ipa = ITIpa()

        XCTAssertNotNil(ipaPath)
    }

    func loadConfig() -> AnyObject? {
        let bundle = NSBundle(forClass: self.dynamicType)
        let configFilePath:String? = bundle.pathForResource("testConfig", ofType: "json")
        XCTAssertNotNil(configFilePath)
        

import UIKit
import XCTest

class ITIpaTests_testConfig: XCTestCase {

    var config:AnyObject?
    var tempDirUrl:NSURL?
    
    override func setUp() {
        config = ITIpaTests_testConfig.loadConfig()
        tempDirUrl = ITIpa.createTempDir()
    }
    
