Remove the format :json and just set the headers at the beginning of the test