dhkeydatapair no longer needs cast when using data/key values

Added a test function to help test the pair.  Should continue to test
this way with other parts are finished