trying to fix intermediate errors in key gen test