Input testing had to be modified due to modified handling of input directories.
This is a coomand-line version of the preprocessing.