Added static method setPersistentSession(bool) to save session between test cases