writing tests for auto log in