Xcode testing code