Rework the tests for use with Python3

Implement the tests as proper TestCases and make use of the python3-ldap
library which has support for both Python2 and Python3.