     func initializeApp() {
       waitUntil { done in
         OSXApplicationDelegate<TestUIElement, AdversaryApplicationElement, FakeObserver>.initialize(
-          axElement: appElement, notifier: notifier).then { applicationDelegate -> () in
-            appDelegate = applicationDelegate
-            observer = appDelegate.observer
-            app = Swindler.Application(delegate: appDelegate)
-            done()
+          axElement: appElement, notifier: notifier
+        ).then { applicationDelegate -> () in
+          appDelegate = applicationDelegate
+          observer = appDelegate.observer
+          app = Swindler.Application(delegate: appDelegate)
+          done()
         }
       }
     }

      context("when a property value changes right after reading it") {

        context("for a regular property") {
          it("is updated correctly") { () -> Promise<Void> in
            appElement.attrs[.Frontmost] = false

            var observer: AdversaryObserver?

              observer?.emit(.ApplicationActivated, forElement: appElement)
            }

            let app = Swindler.Application(delegate: initializeApp())
            expect(app.isFrontmost.value).toEventually(beTrue())
          }
        }

