Move test code for basic and LDAP test into TestSub module.