make PetitionTest deal with preserved global states in SeleniumTests.