Move from dispatch_semaphore_t to XCTestExpectation
Move from dispatch_semaphore_t to XCTestExpectation

Starting with Xcode 6, XCTest has been enhanced to include the ability to serialize asynchronous execution in the test method, by waiting for the completion of an asynchronous callback or timeout via XCTestExpectation. For most of test cases there is no need for dispatch_semaphore_t anymore.

pinterest/PINRemoteImage,pinterest/PINRemoteImage,pinterest/PINRemoteImage,pinterest/PINRemoteImage