keyGen test