Add variable waiting to element checking steps
visibility_test has a test just in case it is executed
Whitespace fixup