add ret by ptr test