Fix test for unauthorized API usage error test