[#957] seems to improve on spurious test failures by using selenium in a more robust way
[#957] loosen constraints in timing dependent code to make test more reliable