Fix raw json option with redirect tests