Added test case for quota headers.
Added rate check test.
Test fixes.