[SD-828] Fixing the nosetests and behave tests when AD is active. Because of role changes these tests were failing.