Added some wait until visible to functional tests to make them more stable.