Using @autoreleasepool to avoid dangling objects during the running test