added tests for keygen
Merge pull request #4 from praekelt/feature/issue-4-add-tests-for-keygen

add tests for keygen