auto refresh test and login