Re-organise ldap function tests