Add data dumping mode
This adds one minor change so that the dumper can run with data, plus a unit test to make sure we don't break it.
I did some other minor cleanup: I removed the argument that specifies the test directory in tests where we don't need the artifacts, and some whitespace cleanup.