unit testing api rate limit