As a DevOps Engineer, you are responsible for designing a CI/CD pipeline that incorporates automated testing and deployment of a serverless application using Google Cloud Functions. Which of the following approaches should you implement to ensure seamless integration of testing and deployment, while maintaining the ability to roll back to a previous version if required?