Delegate test

@prachigauriar please review
I don’t understand your use of the `error` parameter here. It doesn’t appear that you return it indirectly. So shouldn’t it just be a normal `NSError *`? If so, you can eliminate the if statement altogether, right?