Implement test mode in DPA; add LDAP attrs in templates