update api tests with ldap authentication