Adding tests for ExtendedECKey.
Fixing issues with creating keys.