             XCTAssertTrue(self.checkActivityViewAppeared())
         }
         NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
-        doAfter(10) {
+        doAfter(50) {
             XCTAssertTrue(self.checkActivityViewAppeared())
         }
         doAfter(50) {

        NVActivityIndicatorPresenter.sharedInstance.startAnimating(activityData)
        doAfter(50) {
            XCTAssertFalse(self.checkActivityViewAppeared())
            NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
        }

        XCTAssertFalse(checkActivityViewAppeared())
        NVActivityIndicatorPresenter.sharedInstance.startAnimating(activityData)
        doAfter(150) {
            XCTAssertTrue(self.checkActivityViewAppeared())
            NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
            XCTAssertFalse(self.checkActivityViewAppeared())
        }
    }

        NVActivityIndicatorPresenter.sharedInstance.startAnimating(activityData)
        doAfter(approximateZero) {
            XCTAssertTrue(self.checkActivityViewAppeared())
        }
        NVActivityIndicatorPresenter.sharedInstance.stopAnimating()
        doAfter(approximateZero) {
            XCTAssertFalse(self.checkActivityViewAppeared())
        }
    }

    func testNonZeroDisplayTimeThreshold() {
        let activityData = createActivityData(displayTimeThreshold: 100,
                                              minimumDisplayTime: 0)

