add friend class for param, for unit testing