API test auto-authenticate