Tests are always failing in the CI/CD pipeline but when run locally, they always succeed. Investigate what's the difference / edge case and make tests pass in CI/CD.