add keygen tests