Active Directory test should attempt to use "Test" button

All tests attempt to use the "test" button before setting security.
When test button fails, the test should exit without touching the
security realm.
Update scenarios in tests javadoc
Why is this handled? In case of unexpected *page-leaving* alert it is either Jenkins bug or logic error in test.