I like elegant architecture and clean data structures.
How am I supposed to test something, when the design be like

I like elegant architecture and clean data structures.
How am I supposed to test something, when the design be like

I assume you're trying to use the wrong tool or strategy for the task, so you have to twist yourself into a 🥨 , to get it to work.
For cases like that, I break THE SHIT out of it. Submit defects until their defect database melts, then issue a document that shows the way ouy of the mess, with multiple solution paths.