PAM and user state changes, some optimizations to test cases