     
     func testBasicUserFlow() {
         let app = XCUIApplication()
+        let presentButton = app.buttons["Show Map"]
 
-        app.buttons["Show Map"].tap()
+        presentButton.tap()
+
+        let locationAnnotation = app.otherElements["Current Location"]
+
+        self.expectationForPredicate(self.existsPredicate, evaluatedWithObject: locationAnnotation, handler: nil)
+        self.waitForExpectationsWithTimeout(5.0, handler: nil)
 
         let searchField = app.navigationBars["Select Nearby Location"].searchFields["Search for place or address"]
         searchField.tap()


        app.buttons["Select address in callout view"].tap()

        // Use XCTAssert and related functions to verify your tests produce the correct results.
    }
    
}

import XCTest

class MapViewControllerUITests: XCTestCase {

    let existsPredicate = NSPredicate(format: "exists == 1")

    override func setUp() {
        super.setUp()

