LATER ldb: Fix broken tests in api.py, extend ldb_dn_compare ones