We should change the test to check the output in the callback. No need to write to file.