[Luiza, Vivi] Refactoring functional tests, log in method and poll status test