title: Xcode UI Testing: how to test app's first launching
body: <p>I'm writing UITests in xCode 7.1 and have a function that tests app during first launching. The question is: how to check does the app launched for the first time or not.
  I need something like this:</p>
  
  <pre><code>func testFirstLaunching() {
     if ("app is launched for the first time") {
          //test scenario of first launching
       }
     else  {
          //invoke func that will test other scenario
       }
  }
  </code></pre>
  
  <p>Does anybody know any trick how to check this?
  App is using <strong>NSUserDefaults</strong>, maybe Xcode tests have a super-powerful feature to access it?</p>
  
  <p>Any suggestions would be valuable!)</p>