Add back `test_user_if_present_with_gid` and fix it