add test for .isValid() function
Merge pull request #242 from ryanxcharles/feature/privatekey-isvalid

add test for .isValid() function