test API for login and groups