add friend class for internal tests