Optimizing Unit Testing Efficiency: Best Practices for Minimizing Boilerplate Code