         super.tearDown()
     }
     
+    func existsPhotoSliderScrollView(app: XCUIApplication) {
+
+        sleep(1)
+        XCTAssertEqual(app.scrollViews.matchingIdentifier("PhotoSliderScrollView").element.exists, false)
+
+    }
+    
     func testPushCloseButtonExample() {
         
         let app = XCUIApplication()

        let element = app.scrollViews.matchingIdentifier("PhotoSliderScrollView").elementBoundByIndex(0)
        element.swipeDown()
        
        XCTAssertEqual(app.scrollViews.matchingIdentifier("PhotoSliderScrollView").element.exists, false)
    }
    
    func testRightRotation() {

        element.doubleTap()
        app.buttons["PhotoSliderClose"].tap()
        
        self.existsPhotoSliderScrollView(app)
    }

}
