Enhancing Code Functionality: The Role of AI-Assisted Unit Test Generation in Code Testing Efficiency