Set up scripts so they can be tested.

No actual tests added!