Merge "keygen test not generating the key for every iteration" into main