Add login tests for agent and user.