fixed json output on test fail