Added tests to KeyGenTest
Refactored KeyGen to KeyGenUtils. Added more tests to KeyGenUtilsTests
Forgot to add files to last commit