Refactoring of User flow tests and signed in user helper method