Refactor login method on tests