Get friend function with test