Collections autoreset; login test code