Fix cache and genshi template in the tests