cleanup log
update tests to support jsonfile as output from phantom