fixes bug 1055273 - Smarter and faster test of API ratelimit
Merge pull request #2300 from peterbe/bug-1055273-smarter-and-faster-test-of-api-ratelimit

fixes bug 1055273 - Smarter and faster test of API ratelimit