Moving login into tests that require authentication