Added fail test case and JSON output