I know so many people who are in this exact position. Trying to change the practices of their companies for the better but never getting anywhere.
A client is paying for a refactor but the manager says "we don't have time to write tests, the client is not paying for that" (when indeed they are in the end).