More reusable test tools setup

Factorize the xdg path setting which will be needed for other tests
Add an additional test to ensure we don't commit a change by default