Added JSON logging with flag fileJson in Collector.Tests. The JSON is
written out to a .txt file named with a time stamp and which
implementation the data derives from.