Standardize naming Use stricter assertions and reduce boilerplate to make the intent of the tests more obvious. Also explicitly sort the filenames so that the correct files are pruned, and so that the tests can not flake.
To ensure that files are pruned before a new one is created. Also clean up the logic in pruneFiles
* hclog Allow users to choose between unstructured and JSON logging