gh-8: Improves factoring of envGen curve unit tests.