Added handling of input and output files to the mock command, so we can test it’s behaviour on IO.