Fixed test cases to use the Agent/User getLoginName and LOGIN_NAME QueryParameter.