Fixed the tests to correctly check against the visibility timeout.