Change XfailsController to use json file instead of text file