test for api username and password