Refactors the json parse method
Refactors test headers for each request