Added tests for CheckRateLimiting