Add test cases for 500 error with slow responses

when using redis as the rate limit storage and the response
is slower than the rate limit window, 500 errors occur as the
key is not available post request for constructing the rate limit
headers.