improve reliability of tests on a reloading page

git-svn-id: https://svn.apache.org/repos/asf/continuum/branches/CONTINUUM-2713@1546889 13f79535-47bb-0310-9956-ffa450edef68