You need to develop an intuition to it, the same kind of intuition you developed for systems we work with. For example, your test issue: start by writing tests before making the implementation. LLMs are quite capable but they are not AGI. If your pipeline is good they can produce solid results.