         XCTAssertEqual(app.scrollViews.matchingIdentifier("PhotoSliderScrollView").element.exists, true)
         
         app.buttons["PhotoSliderClose"].tap()
-
-        XCTAssertEqual(app.scrollViews.matchingIdentifier("PhotoSliderScrollView").element.exists, false)
+        
+        self.existsPhotoSliderScrollView(app)
     }
     
     func testSwitchImage() {

        element.doubleTap()
        app.buttons["PhotoSliderClose"].tap()
        
        sleep(1)

        XCTAssertEqual(app.scrollViews.matchingIdentifier("PhotoSliderScrollView").element.exists, false)
    }

}

        let element = app.scrollViews.matchingIdentifier("PhotoSliderScrollView").elementBoundByIndex(0)
        element.swipeDown()
        
        self.existsPhotoSliderScrollView(app)
    }
    
    func testRightRotation() {
