resolve some errors in vault_key_helper testing code