Refactor the json parse method
Refactor test headers for each request