Redesign get_ldap_user_info mock in tests. Bugfix.