I would have liked to post this as a comment instead of an answer, but I lack the reputation. The post linked below reports similar issues that were addressed by upgrading to a more current version of Weld.
https://github.com/weld/weld-testing/issues/83
You may want to try this, but it could be complex - I'm not sure if this would introduce incompatibilities with the remainder of the project configuration and other dependencies.