fix test using json response insteal of xml

Due to inconsistent xml response when do get limits, update test to use json response to fix flaky issue for now.