Added unit tests for KeyGenUtils