Fix clear_filetable (clears cache) which hadn't been tested for a long time.
write_plot_data methods return a list of files which had been created.
When they do something other than write files (e.g. a JSON string), we'll have
to change the spec a bit.