unit tests for HSMParams
(#365)