Forgot to have a method to encode private key as byte[]

Added a method encodePriKey() which returns a private key as a byte[]
array
Added a new set of unit tests for thekey exchange utility class