Add test to check that DUMP creates a file
Add conditions for output messages