Added tests to rate limiter functionality.