add unit tests
fix wrong user variable passed to pam_restauth_check()