Fix LdapBackendFormTest

Alter class mocks to fit the latest changes in LdapBackendFormTest

fixes #6597
Fix coding style