nice spot! Looks like netpgp_generate_key have problem with password (do not use it). I think we need two tests one for password protected scenario and second without password.