Test for pvtKey Serialization