For me getting hooked to something else I am passionate about takes me away from work worries. I am currently hooked to Self-Driving Cars, doing a Nanodegree from Udacity.
Using it too, you can easily create templates in the "TRML" file format including headers/footers etc. It supports table breaking in the middle with repeating headers, this is really useful when you generate invoices or tables of data.
Unit testing is all about abstracting / mocking out all the modules connected to the unit you are testing & just test your unit.
If you are programming in python, http://www.voidspace.org.uk/python/mock/ would be the most preferred way of mocking out other external units connected to your unit under test.