* Invoices: Add debug logs and better temp pdf location * Fix test * maybe fix test * log debug test * set local dirname * wip * wip * wip