El usermod test fixes

Fixes test failures caused by inconsistent behavior on SLES and RHEL.