make functional test more robust

error on jsf page is often dynamic and sometimes the build fails for slow ajax response. This should address it.