Added failures and differences saving in run_tests