Added JSON output for testing results.