Add tests for per tenant invoice template upload