Updated test in line with changes in test data on PyPI.
Provided the ability to generate script variants foo, fooX and foo-X.Y.