Use type assertion for TooManyRequests test