Add some script tests and helper functions.