Move _mock_ldap initialization to __init__ to avoid duplication between test modules