It seems that dumping is already covered by tests. What you should do is to test the behaviour of changing the template (if you change the template, result is dumped to a different file).