I identify with this, a bit. I’m getting more serious about writing testing, and it seems to give me some confidence.
I recommend a few books. Growing Object Oriented software guided by tests. It lays out a clear plan on starting and how one can approach building tests.
Next would be dependency injection: principles and practices.
Maybe try the GOOS book first and see if it resonates with you.