Fix random test failures

Remove accidental duplication of error detection.
Place some webelement access in waits.
Sort of deal with an occasional break in WildFly server logout.