     func testManualDeletion() {
         inMeasureBlock {
             let realm = self.copyRealmToTestPath(mediumRealm)
-            let objects = map(realm.objects(SwiftStringObject)) { $0 }
+            let objects = realm.objects(SwiftStringObject).map { $0 }
             self.startMeasuring()
             realm.write {
                 realm.delete(objects)

                }
                dispatch_semaphore_signal(semaphore)
                while object.intCol < stopValue {
                    NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture() as! NSDate)
                }
                realm.removeNotification(token)
            }

    }

    private func copyRealmToTestPath(realm: Realm) -> Realm {
        try! NSFileManager.defaultManager().removeItemAtPath(testRealmPath())
        realm.writeCopyToPath(testRealmPath())
        return realmWithTestPath()
    }
