test for is_friend, add functions get_degree and get_related_friends for a given degree (plus tests)