Try this:
#import "TFHpple.h"
NSData * data = [NSData dataWithContentsOfFile:@"index.html"];
TFHpple * doc = [[TFHpple alloc] initWithHTMLData:data];
NSArray * elements = [doc search:@"//p[@class='test']"];
TFHppleElement * element = [elements objectAtIndex:0];
[e content]; // Tag's innerHTML
[e tagName]; // "a"
[e attributes]; // NSDictionary of href, class, id, etc.
[e objectForKey:@"href"]; // Easy access to single attribute
You have more elements so loop the 'elements' array, in this case you could do [elements objectAtIndex:0] and [elements objectAtIndex:1].