Utils for pam-related tests