Generate source jars for tests

Closes #6125
We can look as well if you don't have time, no worries!