improve(test): logged-in user detection