ProtocolPinning: fixed some bugs, added some tests - release on CPAN