added second parameter to testing method for friend id