AFHTTPSessionManager tests - added error checking; misc cleanup.