Make a start in testing the contents of the output file re #7617

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>