Adds correct checks in LDAP backend tests

Co-Authored-By: Henrique Truta <henrique@lsd.ufcg.edu.br>

Change-Id: Ib3928fbe55427ff49af722f47f402292b931cd24
Implements: bp hierarchical-multitenancy
Merge "Adds correct checks in LDAP backend tests"