Print data and images to file from the test environment

Print data and images to file from the test environment

See: Saving analyses to file