add login to tests